package com.requiem.hist_group_manage_springboot.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.requiem.hist_group_manage_springboot.constants.SystemConstants;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class BlackModel {
    // 主键 ID（对应数据库 int 类型，非空）
    private int id;
    //学生id
    private Integer studentId;
    //非数据库字段
    private String name;
    private Integer sex;
    private Integer age;
    private String grade;
    private String department;
    private String major;
    private String studentNumber;
    //拉黑原因
    private String reason;

    // 创建时间（对应数据库 datetime 类型，包含年月日时分秒）
    @JsonFormat(pattern = SystemConstants.DATE_TIME_FORMAT, timezone = "GMT+8")
    private LocalDateTime createTime;
}